import java.sql.Timestamp;

public class test {
    public static void main(String[] args) {
        java.util.Date date=new java.util.Date();
        date.getTime();
        System.out.println(date.getTime());
        System.out.println(new Timestamp(date.getTime()));
    }
}
